<template>
  <div class="apps">
    <div class="apps-bg"></div>
    <div class="apps-content">
      <div class="apps-content-item">
        <div class="item-bg"></div>
        <div class="item-cotent">
          <div class="item-cotent-top">
            <span></span>
            <span>客户管理</span>
          </div>
          <div class="item-cotent-bottom">
            <div class="bottom-item" @click="goRouter('clueHighseas')">
              <svg-icon class="xsgh-icon" name="xsgh"></svg-icon>
              <span>线索公海</span>
            </div>
            <!-- <div class="bottom-item" @click="goRouter('highSeas')">
              <svg-icon class="xsgh-icon" name="xsgh"></svg-icon>
              <span>老客迁移</span>
            </div> -->
            <div class="bottom-item" @click="goRouter('lostCustomers')">
              <svg-icon class="xsgh-icon" name="lskh"></svg-icon>
              <span>流失客户</span>
            </div>
            <div class="bottom-item" @click="goRouter('personalSOPDetails')">
              <svg-icon class="xsgh-icon" name="csop"></svg-icon>
              <span>客户SOP</span>
            </div>
          </div>
        </div>
      </div>
      <div class="apps-content-item">
        <div class="item-bg"></div>
        <div class="item-cotent">
          <div class="item-cotent-top">
            <span></span>
            <span>社群运营</span>
          </div>
          <div class="item-cotent-bottom">
            <!-- <div class="bottom-item" @click="goRouterTwo('/task', 1)">
              <svg-icon class="xsgh-icon" name="bqjq"></svg-icon>
              <span>标签建群</span>
            </div> -->
            <div class="bottom-item" @click="goRouter('customerBaseDetails', 2)">
              <svg-icon class="xsgh-icon" name="gsop"></svg-icon>
              <span>客群SOP</span>
            </div>
          </div>
        </div>
      </div>
      <div class="apps-content-item">
        <div class="item-bg"></div>
        <div class="item-cotent">
          <div class="item-cotent-top">
            <span></span>
            <span>客情维系</span>
          </div>
          <div class="item-cotent-bottom">
            <div class="bottom-item" @click="goRouter('quality')">
              <svg-icon class="xsgh-icon" name="quality"></svg-icon>
              <span>会话质检</span>
            </div>
            <div class="bottom-item" @click="goRouter('friends')">
              <svg-icon class="xsgh-icon" name="friends"></svg-icon>
              <span>朋友圈营销</span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: '',
  components: {},
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    goRouter(name) {
      this.$router.push({ name })
    },
    goRouterTwo(path, i) {
      this.$router.push({
        path,
        query: {
          type: i,
        },
      })
    },
  },
}
</script>

<style lang="less" scoped>
.apps {
  width: 100%;
  height: 100vh;
  background: #fafafa;
  position: relative;
  .apps-bg {
    width: 100%;
    height: 295px;
    background: linear-gradient(180deg, #eaf5ff 0%, rgba(253, 253, 253, 0) 100%);
  }
  .apps-content {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    width: 93.6%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    .apps-content-item {
      width: 100%;
      height: 170px;
      background: #ffffff;
      box-shadow: 0px 2px 6px -3px rgba(0, 0, 0, 0.04);
      border-radius: 8px 8px 8px 8px;
      position: relative;
      overflow: hidden;
      .item-bg {
        width: 180%;
        height: 166px;
        background: linear-gradient(60deg, #00d695, #fff);
        opacity: 0.3;
        border-radius: 8px 8px 8px 8px;
      }
      .item-cotent {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        .item-cotent-top {
          width: 100%;
          height: 45px;
          background: rgba(0, 0, 0, 0);
          padding-left: 17px;
          display: flex;
          align-items: center;
          span:nth-child(1) {
            width: 4px;
            height: 14px;
            background: #00d695;
            border-radius: 1px 1px 1px 1px;
            margin-right: 7px;
          }
          span:nth-child(2) {
            font-size: 16px;
            font-family: 'PingFang SC-粗体', 'PingFang SC';
            font-weight: 600;
            color: #222222;
            line-height: 22px;
          }
        }
        .item-cotent-bottom {
          width: 100%;
          height: 125px;
          background: #fff;
          padding-top: 25px;
          display: flex;

          .bottom-item {
            margin-left: 28px;
            display: flex;
            flex-direction: column;
            align-items: center;
            .xsgh-icon {
              width: 44px;
              height: 44px;
              margin-bottom: 9px;
            }
            span {
              font-size: 13px;
              font-family: 'PingFang SC-中等', 'PingFang SC';
              font-weight: normal;
              color: #222222;
              line-height: 18px;
            }
          }
        }
      }
    }
    .apps-content-item:nth-child(2) {
      margin: 8px 0;
      .item-bg {
        background: linear-gradient(60deg, #0079de, #fff);
      }
      .item-cotent {
        .item-cotent-top {
          span:nth-child(1) {
            background: #0079de;
          }
        }
      }
    }
  }
}
</style>
